package com.changgou.goods.feign;

import com.changgou.goods.pojo.Sku;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @ProjectName: changgou_parent
 * @Package: com.changgou.goods.feign
 * @ClassName: SkuFeign
 * @Author: 孙明田
 * @Description: 远程调用
 * @Date: 2020/6/19 10:29
 * @Version: 1.0
 */

@FeignClient(name = "goods")
public interface SkuFeign {

    @GetMapping("/sku/spu/{spuId}")
    List<Sku> findBySpuId(@PathVariable("spuId") String spuId);
}
